import request from '@/utils/request'

// 查询垃圾清运导入列表
export function listRecycleImportBase(query) {
  return request({
    url: '/standingbook/recycleImportBase/list',
    method: 'get',
    params: query
  })
}

// 查询垃圾清运导入详细
export function getRecycleImportBase(batchNo) {
  return request({
    url: '/standingbook/recycleImportBase/' + batchNo,
    method: 'get'
  })
}

// 新增垃圾清运导入
export function addRecycleImportBase(data) {
  return request({
    url: '/standingbook/recycleImportBase',
    method: 'post',
    data: data
  })
}

// 修改垃圾清运导入
export function updateRecycleImportBase(data) {
  return request({
    url: '/standingbook/recycleImportBase',
    method: 'put',
    data: data
  })
}

// 删除垃圾清运导入
export function delRecycleImportBase(batchNo) {
  return request({
    url: '/standingbook/recycleImportBase/' + batchNo,
    method: 'delete'
  })
}

export function importData(data) {
  return request({
    url: '/standingbook/recycleImportBase/importData',
    method: 'post',
    data: data
  })
}
